<%@ page  contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" import="user.*" %>
<jsp:useBean id="userBean" class="user.UserBean" scope="request">
<jsp:setProperty name="userBean" property="*"/>
</jsp:useBean>
<jsp:useBean id="regist" class="user.UserRegister" scope="request"/>
<html>
<head>
<title> 用户信息注册页面</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
body {background-image:url("chenggong.jpg");
background-repeat:no-repeat;
background-attachment:fixed;
}
</style>
</head>
<body>

<%
String userid =request.getParameter("userid");
String password = request.getParameter("password");
userBean.setUserId(userid);
userBean.setPassword(password);
System.out.println(userid+password);
%>
<% try{
  regist.setUserBean(userBean);
  out.println(userid);
  regist.regist();
  out.println("注册成功,请返回登录");}
  catch(Exception e){
  out.println(e.getMessage());
  }
%>
<br>
<input type="button" value="返回" onclick="window.location.href='denglu.jsp'">
</body>
</html>

